package conson.tech.manage.app.constant;

import conson.tech.core.exception.ErrorType;

public enum BusinessMessage implements ErrorType {

    SUCCESS(200, "操作成功"),
    ERROR(500, "操作失败"),
    NOTSURE(600, "不确定状态"),

    VERSION_NUM_VALUE_ERROR(40000, "该平台下已经存在该版本号或者版本值"),
    PARAMS_ERROR(40001,"参数不完整"),
    VERSION_VALUE_ERROR(40002,"请传递版本值"),
    NATYPE_ERROR(40003, "链接类型为app页时,请传递app页ID"),
    VERSION_NEW_VALUE_ERROR(40004, "该平台下已经存在最新版本"),
    NATYPE_H5_ERROR(40005, "请填写android和ios链接地址"),
    ;

    private int code;
    private String message;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
    BusinessMessage(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
